/*
* @Author: wanghongfucoder
* @Date:   2017-02-20 17:32:52
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-21 09:53:23
*/

var http=require('http');
http.createServer(function(req,res){
	res.writeHead(200,{'Content-Type': 'text/html'});
	res.write('<h1>Nodejs</h1>');
	res.end("<p>hello world</p>");
}).listen(3000);
console.log("http serveer is listening at port 3000.");·